<%--
  Created by IntelliJ IDEA.
  User: lucky
  Date: 2020/12/23
  Time: 23:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <title>房间管理</title>
</head>
<body>
<h3>欢迎进入房间管理界面</h3>
<table border="1px" cellpadding="10px" cellspacing="0" bgcolor="#ccc" style="text-align: center">
    <tr>
        <th>房间地址</th>
        <th>可容纳人数</th>
        <th>已住人数</th>
        <th>房租</th>
        <th>房间状态</th>
        <th>房东</th>
        <th>房东电话</th>
        <th>房间类型</th>
    </tr>
    <c:forEach items="${requestScope.homes}" var="home">
        <tr>
            <td>${home.address}</td>
            <td>${home.maxnum}</td>
            <td>${home.innum}</td>
            <td>${home.rental}</td>
            <td>${home.status}</td>
            <td>${home.landlord}</td>
            <td>${home.tel}</td>
            <td>${home.type}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
